package com.sxl.chapter.eight;

import java.io.Serializable;

public class Overload {

	public static void sayHello (Object obj) {
		System.out.println("Hello object");
	}
	
	public static void sayHello (int obj) {
		System.out.println("Hello int");
	}
	public static void sayHello (long obj) {
		System.out.println("Hello long");
	}
	public static void sayHello (Character obj) {
		System.out.println("Hello Character");
	}
	public static void sayHello (char obj) {
		System.out.println("Hello char");
	}
	public static void sayHello (char... obj) {
		System.out.println("Hello char...");
	}
	public static void sayHello (Serializable obj) {
		System.out.println("Hello Serializable");
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		sayHello('a');
	}

}
